import Vue from 'vue';
import VueRouter from 'vue-router';
import App from '@/app.vue';
import Home from '@/pages/home.vue';
import About from '@/pages/about.vue';
Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        component: Home
    },
    {
        path: '/about',
        component: About
    }
];

const router = new VueRouter({
    mode: 'history',
    routes
});

new Vue(
    {
        el: '#app',
        render: h => h(App),
        router
    }
).$mount('#App');